import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
//引入Vant
import Vant from 'vant'
import 'vant/lib/index.css'
//引入moment.js日期处理工具
import moment from 'moment'
//移动端适配
import 'amfe-flexible/index.js'
//Vant组件注册
// import {createApp} from 'vue'
import { List } from 'vant'

Vue.config.productionTip = false
    //使用axios
Vue.use(VueAxios, axios)
    //使用Vant框架
Vue.use(Vant)
Vue.use(List)
    //使用moment.js
Vue.prototype.$moment = moment
moment.locale('zh-cn') //汉化处理
new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount('#app')